package com.dong.boot.utils;

import com.dong.boot.model.Hr;
import org.springframework.security.core.context.SecurityContextHolder;

public class SystemConfigUtil {

    public static Hr currentUser(){
        return (Hr) SecurityContextHolder.getContext().getAuthentication().getPrincipal();
    }
}
